package com.wskj.library.dao.impl;

import com.wskj.library.pojo.*;

import com.wskj.library.dao.*;

import java.util.List;

/**
 * fineInfo dao接口类实现类
 * 2018-03-22 T148
 */ 
public class FineInfoDaoImpl extends BaseDao implements FineInfoDao{

	 @Override
	 public int addFineInfo(FineInfo  fineInfo){
		 String sql="insert into fineInfo  values  ()";
		 Object[] params= {};
		 return super.executeUpdate(sql, params);
	 }
	 @Override
	 public int deleteById(int id){
		 String sql="delete from fineInfo  where fineId=? ";
		 Object[] params= {id};
		 return super.executeUpdate(sql, params);
	 }
	 @Override
	 public int updateFineInfo(FineInfo fineInfo){
		 String sql="update fineInfo set ";
		 Object[] params= {};
		 return super.executeUpdate(sql, params);
	 }
	 @Override
	 public FineInfo getFineInfoById(int id){
		 String sql="select * from fineInfo where fineId=? ";
		 Object[] params= {id};
		 return super.queryOne(sql, params,FineInfo.class);
	 }
	 @Override
	 public  List<FineInfo>  getAllFineInfos(){
		 String sql="select * from fineInfo";
		 Object[] params= null;
		 return super.queryAll(sql, params, FineInfo.class);
	 }
}

